#include<stdio.h>
#define LEAP_YEAR(y) ((y%4==0&&y%100!=0)||y%400==0)
int main()
{
	int year,judge;
	scanf("%d",&year);
	judge=LEAP_YEAR(year);
	if(judge==1)
		printf("L\n");
	else
		printf("N\n");
}
